import request from '@/utils/request'
import { getToken } from '@/utils/auth'
var token = getToken()
//企业列表
export function getqiyeList(formData) {
    return request({
        url: '/api/admin/base-station/qiye',
        method: 'get',
        params: formData
    })
}
//电站列表
export function getDianzhanList(formData) {
    return request({
        url: '/api/admin/region/basestation',
        method: 'get',
        params: formData
    })
}
//区域列表
export function getquyuList(formData) {
    let newData = JSON.stringify(formData);
    return request({
        url: '/api/admin/equ/ascription',
        method: 'POST',
        data: newData
    })
}
//banner
export function getbanner() {
    return request({
        url: '/api/admin/banner',
        method: 'get',
    })
}
export function getbanneredit(formData) {
    let newData = JSON.stringify(formData);
    return request({
        url: '/api/admin/banner/edit',
        method: 'POST',
        data: newData
    })
}



